﻿#include <stdio.h>
#include <thread>

#include "SLT_tool_pub.h"
static void thread_1()
{
    char buf[4096] = { 0 };
    memset(buf, 'b', sizeof(buf));
    for (int i = 0; i < 1; i++) {
        SLT_LOG(0, SLT_INFO, "%s", buf);
        SLT_LOG(0, SLT_WARM, "%s", "SLT_WARM");

        SLT_LOG(1, SLT_INFO, "%s", buf);
        SLT_LOG(1, SLT_ERROR, "%s", "SLT_ERROR");

        SLT_LOG(2, SLT_WARM, "%s", "SLT_WARM");
    }
}
int tool_log_test_main()
{

    SLT_setLogConfig("./config_log.ini");
    SLT_logInit();

    char buf[4096] = { 0 };
    memset(buf, 'a', sizeof(buf));

    for (int i = 0; i < 1; i++) {
        std::thread* thread1 = new std::thread(thread_1);
    }

    std::string str;
    str = "aa";
    SLT_LOGS_DEBUG() << "hello" << 1 << str;

    SLT_logUninit();

	return 0;
}

